package com.right.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * <pre>
 *     @author : Tuo
 *     e-mail : 839539179@qq.com
 *     time   : 2018/12/27 10:36
 *     desc   : 自行车 车锁表
 *     version: 1.0
 * </pre>
 */

@Data
@Table(name = "bicycle_lock")
@ApiModel(value = "com.right.db.BicycleLock")
public class BicycleLock {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "null")
    private Long id;

    /*锁编号*/
    @ApiModelProperty(value = "锁编号")
    private String lockNo;

    /* mac地址*/
    @ApiModelProperty(value = "mac地址")
    private String lockMac;

    /* 创建者*/
    @ApiModelProperty(value = "创建者")
    private Long creator_id;

    /* 创建时间*/
    @ApiModelProperty(value = "创建时间")
    private Date created_at;

    /* 修改者*/
    @ApiModelProperty(value = "修改者")
    private Long updator_id;

    /* 修改时间*/
    @ApiModelProperty(value = "修改时间")
    private Date updated_at;

    /* 状态*/
    @ApiModelProperty(value = "状态 1未使用2已装配3入库4运营中5已分配6出库7报废 ")
    private Integer status;

    /* 运营商id*/
    @ApiModelProperty(value = "运营商id")
    private Long operator_id;

    /* 锁类型*/
    @ApiModelProperty(value = "锁类型 1 旧锁 2 新锁")
    private Integer type;

    /* 电压 毫伏*/
    @ApiModelProperty(value = "电压 毫伏")
    private Long voltage;

    /* 商户号*/
    @ApiModelProperty(value = "商户号")
    private String merchant_id;

    /* 终端号*/
    @ApiModelProperty(value = "终端号")
    private String term_id;

}
